exports.queryUserInformation = function (req, res) {

    //获取参数信息
    var bodyParams = req.routeInfo.bodyParams;

    //返回结果
    var resultData = {};

    //存储命名空间
    var n_id = ""

    //任务流创建
    async.waterfall([

        //查询命名空间
        //查询用户信息
        (cb)=> {

            db.field('n_id').where({
                "n_appid" : bodyParams.severAppId
            }).select("socket_namespace",(rs) => {
                //不存在
                if(rs.length == 0){
                    return RES.errorResponse(res,"此appId不存在");
                }
                n_id = rs[0].n_id
                cb();
            })

        },

        (cb)=> {

            db.where({
                "u_username" : bodyParams.userId,
                "u_nid"      : n_id,
                "u_is_delete" : 0
            }).select("socket_user",(rs) => {
                if(rs.length == 0){
                    return RES.errorResponse(res,"请输入正确的用户id");
                }
                resultData = rs
                delete(resultData.u_is_delete);
                cb();
            })

        }
    ],()=> {

        //返回最终拼接结果
        RES.successResponse(res,resultData);

    });
    
}